﻿using UnityEngine;

public class PersonFactory : IBaseFactory
{
    public PersonBase GetPerson<T>(Transform parentTf, string prefabsName) where T : PersonBase, new()
    {
        var obj = Resources.Load(prefabsName);
        var go = (GameObject)GameObject.Instantiate(obj);
        go.transform.SetParent(parentTf, false);
        return go.transform.GetComponent<T>();
    }

    public EquipmentBase GetEquipment<T>() where T : EquipmentBase, new()
    {
        return null;
    }
}
